package com.trailwalker.traceability.net.result;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 统一返回数据
 */

public class ApiResult<T> implements Serializable {
    private int code;
    private T data;
    private String msg;
    private String json; //原始数据
    private LocalDateTime currTime;

    public LocalDateTime getCurrTime() {
        return currTime;
    }

    public void setCurrTime(LocalDateTime currTime) {
        this.currTime = currTime;
    }

    public int getResult() {
        return code;
    }

    public void setResult(int code) {
        this.code = code;
    }

    public String getJson() {
        return json;
    }

    public void setJson(String json) {
        this.json = json;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
